import type { RouteRecordRaw } from 'vue-router';

import Layout from '@/layouts/index.vue';

export const errorRoutes: RouteRecordRaw[] = [
  {
    path: '/example',
    name: 'example',
    component: Layout,
    redirect: '/example/401',
    meta: {
      title: '异常页',
      icon: 'Warning2',
      authCodes: [],
      visible: true,
    },
    children: [
      {
        path: '/example/401',
        name: 'Example401Page',
        component: () => import('@/views/401.vue'),
        meta: {
          authCodes: [],
          title: '401',
        },
      },
      {
        path: '/example/404',
        name: 'Example404Page',
        component: () => import('@/views/404.vue'),
        meta: {
          authCodes: [],
          title: '404',
        },
      }
    ],
  }
];
